package com.bsoft.gol.hcs.his.service;

import hcn.util.BaseResponse;
import hcn.bean.PushMessageBean;
import com.alibaba.fastjson.JSONObject;
import com.bsoft.gol.hcs.his.bean.request.PushMessageRequest;
import hcn.service.commonClinical.qo.SendMsgCodeRequest;
import com.bsoft.gol.hcs.his.bean.request.SendMsgRequest;

public interface SendMsgService {

    BaseResponse<String> pushNewMessage(PushMessageRequest pushMessageRequest);

    BaseResponse<String> productionMessage(SendMsgRequest sendMsgRequest);

    /*校验图形验证码并获取短信验证码*/
    BaseResponse<String> getIdentifyingCode(SendMsgCodeRequest sendMsgCodeRequest);

    /*校验短信验证码*/
    BaseResponse<String> validateCode(SendMsgCodeRequest sendMsgCodeRequest);

    boolean sendMessage(Object jsonObject, boolean status, int msgType);

    BaseResponse<String> getJsonObject(String url, JSONObject jsonParams);
    /**
     * 消息推送
     * @param pushMessageBean
     * @throws Exception
     */
    void productionMessage(PushMessageBean pushMessageBean) throws Exception;

}
